package com.ybwh.springboot2.conf;

import com.ybwh.springboot2.common.redis.RedissionClient;
import org.redisson.api.RedissonClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p>
 *
 * </p>
 *
 * @author fanbeibei
 * @version 1.0.0
 * @date 2023/6/7 14:30
 */
@Configuration
public class RedissionClientConfig {
    @Autowired
    private RedissonClient redissonClient;

    @Bean
    public RedissionClient redissionClient(){
        return new RedissionClient(redissonClient);
    }
}
